import java.io.File;

public class demo6 {
    public static void main(String[] args) throws InterruptedException {
        File file=new File("d:/test2.txt");
        file.deleteOnExit();
        Thread.sleep(5000);
        System.out.println("进程结束");
    }
}
